<foreach name="videoList" item="vo" key="k">
   <form id="video_form_{$vo.video_id}" name="video_form_{$vo.video_id}" action="{:U('Admin/LiveResourceVideo/save_video')}&live_id=" enctype="multipart/form-data" method="post">
	<tr id="video_tr_{$vo.video_id}" data-id="{$vo.video_id}" data-name="{$vo.video_name}" name="video_tr">
		<td>
			{$k+1}
		</td>
		<td>
		<input type="hidden" id="video_id_{$vo.video_id}" name="video_id" value="{$vo.video_id}">
		<input type="text" style="width:170px;" id="video_name_{$vo.video_id}" name="video_name" value="{$vo.video_name}"/>
		</td>
		<td>
		   <select id="category_{$vo.video_id}" name="category" style="width:60px;">
			   <option value="1" <if condition="$vo.category eq 1"> selected </if>>否</option>
			   <option value="2" <if condition="$vo.category eq 2"> selected </if>>是</option>
		   </select>
		</td>
		<td><if condition="$vo.video_id eq 0"> 
					<input style="width:230px;" type="file" id="file_name_{$vo.video_id}" name="file" value="{$vo.file_name}"/>
				</if>
				<if condition="$vo.video_id neq 0"> 
				{$vo.file_name}
				</if>
		</td>
		<td><input style="width:170px;" type="text" id="input_file_id_{$vo.video_id}" name="input_file_id" value="{$vo.input_file_id}"/></td>
		<td>
		  <a href="javascript:void(1);" id="save_btn_{$vo.video_id}" onclick="save_video(0);">保存</a>
		  <if condition="$vo.video_id neq 0"> 
			  <a href="{:U('Admin/Live/view_live')}&signal_source=2&file_id={$vo.file_id}" target="_blank">播放</a>
			  <a href="javascript:void(1);" onclick="delete_video('{$vo.video_id}')">删除</a>
		  </if>
        </td>
	</tr>
	</form>
</foreach>